package com.linftech.demo.document;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by cofey on 2017/3/4.
 */
@Document(collection = "order_bom")
public class OrderBom implements Serializable {
    public final static String collectionName = "order_bom";
    @Indexed
    private String entCode;
    @Id
    private String id;
    private String creator;
    private Date createTime;
    private Integer recordStatus;
    private Long recordVersion;
    @Indexed
    private String docNo;
    private String inventoryId;
    private String inventoryCode;
    private String inventoryName;
    private String inventorySpec;
    private String attributeCode;
    private String attributeName;
    private String supplierCode;
    private String supplierName;
    private Integer workFlowStatus = 10;
    private Integer yearMonth;
    private Integer yearWeek;
    private Date weekBeginDate;
    private Date weekEndDate;

    private OrderBomProcess process;

    public String getEntCode() {
        return entCode;
    }

    public void setEntCode(String entCode) {
        this.entCode = entCode;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getRecordStatus() {
        return recordStatus;
    }

    public void setRecordStatus(Integer recordStatus) {
        this.recordStatus = recordStatus;
    }

    public Long getRecordVersion() {
        return recordVersion;
    }

    public void setRecordVersion(Long recordVersion) {
        this.recordVersion = recordVersion;
    }

    public String getDocNo() {
        return docNo;
    }

    public void setDocNo(String docNo) {
        this.docNo = docNo;
    }

    public String getInventoryId() {
        return inventoryId;
    }

    public void setInventoryId(String inventoryId) {
        this.inventoryId = inventoryId;
    }

    public String getInventoryCode() {
        return inventoryCode;
    }

    public void setInventoryCode(String inventoryCode) {
        this.inventoryCode = inventoryCode;
    }

    public String getInventoryName() {
        return inventoryName;
    }

    public void setInventoryName(String inventoryName) {
        this.inventoryName = inventoryName;
    }

    public String getInventorySpec() {
        return inventorySpec;
    }

    public void setInventorySpec(String inventorySpec) {
        this.inventorySpec = inventorySpec;
    }

    public String getAttributeCode() {
        return attributeCode;
    }

    public void setAttributeCode(String attributeCode) {
        this.attributeCode = attributeCode;
    }

    public String getAttributeName() {
        return attributeName;
    }

    public void setAttributeName(String attributeName) {
        this.attributeName = attributeName;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Integer getWorkFlowStatus() {
        return workFlowStatus;
    }

    public void setWorkFlowStatus(Integer workFlowStatus) {
        this.workFlowStatus = workFlowStatus;
    }

    public Integer getYearMonth() {
        return yearMonth;
    }

    public void setYearMonth(Integer yearMonth) {
        this.yearMonth = yearMonth;
    }

    public Integer getYearWeek() {
        return yearWeek;
    }

    public void setYearWeek(Integer yearWeek) {
        this.yearWeek = yearWeek;
    }

    public Date getWeekBeginDate() {
        return weekBeginDate;
    }

    public void setWeekBeginDate(Date weekBeginDate) {
        this.weekBeginDate = weekBeginDate;
    }

    public Date getWeekEndDate() {
        return weekEndDate;
    }

    public void setWeekEndDate(Date weekEndDate) {
        this.weekEndDate = weekEndDate;
    }

    public OrderBomProcess getProcess() {
        return process;
    }

    public void setProcess(OrderBomProcess process) {
        this.process = process;
    }
}
